package com.af.monitorModule;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 罗运哲
 */
@SpringBootApplication
@MapperScan({"com.af.monitorModule.generator.mapper"})
@EnableScheduling
@EnableAsync
public class MonitorModuleApplication {

	private static final Logger logger = LoggerFactory.getLogger(MonitorModuleApplication.class);

	public static void main(String[] args) {
		long start = System.currentTimeMillis();
		SpringApplication.run(MonitorModuleApplication.class, args);
		logger.info("Service startup time is " + (System.currentTimeMillis()-start) + " millisecond");
	}

}
